package homeWork.SOC4.mission_1;

public class Empoyee extends Person {

    protected int sarry;
    protected String workDate;

    public Empoyee() {
    }

    public Empoyee(String name,int age,String address,int sarry, String workDate) {
        super(name,age,address);
        this.sarry = sarry;
        this.workDate = workDate;
    }

    public String toString(){
        return "员工对象emp的信息如下:" + "\n" +
                super.toString() + " " +
                "薪水: " + sarry + " " +
                "受聘日期: " + workDate + " " +
                "家庭住址: " + address;
    }

}
